import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import {
  BrowserRouter, //history模式， h5的pushState和replaceState 修改历史记录和url
  HashRouter //hash模式，url中#后面的内容 ，原理：hashchange事件监听#后面的变化切换组件
} from "react-router-dom";

import { Provider } from'react-redux' //作用：将redux的store注入到react的组件树中
import store from './store' //引入redux的store react-redux

createRoot(document.getElementById('root')!).render(
    <Provider store={store}>
      <BrowserRouter>
          <App />
      </BrowserRouter>
    </Provider>
)
